package org.csu.mypetstore.service;

import org.csu.mypetstore.domain.Account;
import org.csu.mypetstore.domain.Cart;
import org.csu.mypetstore.domain.Order;

import java.util.List;

public interface OrderService {
    List<Order> getOrdersByUsername(String username);

    Order getOrder(int orderId);

    void createOrder(Order order);//创建订单，包括insertOrder和insertOrderStatus

    void sendEmail(Account account, Cart cart);
}
